//
//  DDToolbarButton.swift
//  swift微博
//
//  Created by whitcast on 16/7/15.
//  Copyright © 2016年 whitcast. All rights reserved.
//

import UIKit

class DDToolbarButton: UIButton {
    //创建btn
    class func setBtn(title: String,imageName: String)->DDToolbarButton{
        let btn = DDToolbarButton()
        btn.setTitle(title, forState:.Normal)
        btn.setImage(UIImage(named: imageName), forState: .Normal)
        
        btn.setBackgroundImage(UIImage(named: "timeline_card_bottom_background"), forState: .Normal)
        
        btn.setTitleColor(UIColor.blackColor(), forState: .Normal)
        //取消点击后的高亮状态
        btn.adjustsImageWhenHighlighted = false
        
        return btn
    }
}
